//#program once
#ifndef __MYSTDIO_H__
#define __MYSTDIO_H__ 
#include<string.h>

#define FLUSH_NOW 1 //无缓冲
#define FLUSH_LINE 2 //行缓冲
#define FLUSH_ALL 4 //全缓冲
#define SIZE 1024
typedef struct IO_FILE{
    int fileno;//文件描述符
    int flag;//刷新方式
    //char inbuffer[SIZE];//输入缓存区
    //int in_pos;
    char outbuffer[SIZE];//输出缓存区
    int out_pos;
}_FILE;

_FILE*_fopen(const char*filename,const char*flag);
int _fwrite(_FILE*fp,const char*s,int len);
void _fclose(_FILE*fp);




#endif
//c语言中避免头文件被重复包含的标准写法
